<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>分包组长</a></li>
        <li><a href="{:url('group/add')}">新增组长</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>姓名</th>
                <th>工种</th>
                <th>手机号</th>
                <th>身份证号</th>
                <th>是否在职</th>

                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="v">
                <tr>
                    <td>{$v.name}</td>
                    <td>{$v.type}</td>
                    <td>{$v.mobile}</td>
                    <td>{$v.card}</td>
                    <td>
                        <if condition="$v['status'] eq 1">
                            <span class="label label-success">在职</span>
                            <else/>
                            <span class="label label-danger">离职</span>
                        </if>
                    </td>
                    <td>
                        <a class="btn btn-xs btn-primary js-ajax-submit"
                           href="{:url('see',array('id'=>$v['id']))}">查看详情</a>

                        <a class="btn btn-xs btn-danger js-ajax-delete" class=""
                           href="{:url('del',array('id'=>$v['id']))}">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>